Post

Replies

Boosts

Views

Activity

Reply to Unable to convert .mov video to mp4 format in iOS 13
1.Create Folder - let filePath = documentDirectory.appendingPathComponent("FolderName") if !fileManager.fileExists(atPath: filePath.path) { do { try fileManager.createDirectory(atPath: filePath.path, withIntermediateDirectories: true, attributes: nil) } catch { print(error.localizedDescription) return nil } }2. Let url = videoURL destinationURL = filePath.appendingPathComponent("filename.mp4") url.startAccessingSecurityScopedResource() do { try FileManager.default.copyItem(at: url, to: destinationURL) } catch { Logging.Log.error("EncodeVideo failed \(error.localizedDescription)") } url.startAccessingSecurityScopedResource()3. Start Mov to MP4 now it is working.
Dec ’19